package ua.epam.java_bravo.data.exception;

public class DaoException extends Exception {
    protected Throwable throwable;

    /**
     * Method 'DaoException'
     *
     * @param message
     */
    public DaoException(String message) {
        super(message);
    }

    /**
     * Method 'DaoException'
     *
     * @param message
     * @param throwable
     */
    public DaoException(String message, Throwable throwable) {
        super(message);
        this.throwable = throwable;
    }

    /**
     * Method 'getCause'
     *
     * @return Throwable
     */
    public Throwable getCause() {
        return throwable;
    }

}
